package com.harisucici.websocketlib.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.harisucici.websocketlib.im.HWebSocketClientService;

@Deprecated
public abstract class ChatMessageReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String type = intent.getStringExtra(HWebSocketClientService.WEBSOCKET_MSG_TYPE);
        String msg = intent.getStringExtra(HWebSocketClientService.WEBSOCKET_MSG);
        receive(type, msg);
    }

    protected abstract void receive(String type, String msg);
}